import time

startTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
print(f'程序开始时间:{startTime}')
time.sleep(5)
endTime = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
print(f'程序结束时间:{endTime}')